﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Lily.Master
{
    public partial class Administer : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }
        public  void GridBind(object source,string key)
        {
            grid.DataSource = source;
            grid.DataKeyNames = new [] {key};
            grid.DataBind();
        }
        public  void AddEventRegister(EventHandler handler)
        {
            btnAdd.Click += handler;
        }

        public void UpdateGrid()
        {
            UpdatePanel1.Update();
        }

    }
}
